<?php
// ----- >> Extends From Template
class thisPDF extends PDF{
	function Header(){}
	function Footer(){}
}


// ----- >> Init
$fpdf = new thisPDF('P','mm','A4');

foreach ($list_pelamar as $key => $value) {
	$fpdf->AddPage();
	$fpdf->SetLeftMargin(8);

	$fpdf->Ln(0);
	$ln_header_y_top	= $fpdf->GetY();


	// ----- >> Header
	$fpdf->Ln(2);

	$fpdf->SetFont('Arial','B',14);
	$fpdf->Cell(0,5,$judul,0,1,'C');

	$fpdf->Ln(10);


	// ----- >> Data Master
	$fpdf->SetFont('Arial','',10);
	$fpdf->Cell(30,5,"NIK",0,0,'L');
	$fpdf->Cell(2,5,":",0,0,'L');
	$fpdf->Cell(60,5,$value->id_pelamar_pk,0,0,'L');

	$fpdf->Cell(30,5,"",0,0,'L');
	$fpdf->Cell(2,5,"",0,0,'L');
	$fpdf->Cell(20,5,"",0,1,'L');


	$fpdf->SetFont('Arial','',10);
	$fpdf->Cell(30,5,"Nama",0,0,'L');
	$fpdf->Cell(2,5,":",0,0,'L');
	$fpdf->Cell(60,5,$value->nama_pelamar,0,1,'L');

	$fpdf->Cell(30,5,"Periode Gaji",0,0,'L');
	$fpdf->Cell(2,5,":",0,0,'L');
	$fpdf->Cell(20,5,$value->nama_pelamar,0,1,'L');	

	// ----- >> Tabel
	$fpdf->Ln(10);
	$fpdf->SetFont('Arial','B',10);
	$fpdf->Cell(60,5,'Nama Bayar',1,0,'C');
	$fpdf->Cell(35,5,'Pendapatan (A)',1,0,'C');
	$fpdf->Cell(30,5,'Potongan (B)',1,0,'C');
	$fpdf->Cell(45,5,'Kontribusi Koperasi (C)',1,1,'C');
	$fpdf->SetFont('Arial','',8);
}




echo $fpdf->Output('pelamar.pdf', 'I');
exit();
?>